package com.lhkj.ct.base.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * @Description: 操作类型枚举
 * @Author:
 * @Date: 2020/6/5 17:48
 */

public enum ActionType implements IBaseEnum<Integer, String> {
    /**
     * 新增
     */
    INSERT(1,"新增"),

    /**
     * 删除
     */
    DELETE(2,"删除"),

    /**
     * 更新
     */
    UPDATE(3,"更新"),

    /**
     * 查询
     */
    QUERY(4,"查询"),

    /**
     * 导出
     */
    EXPORT(5,"导出"),

    /**
     * 导入
     */
    IMPORT(6,"导入"),

    /**
     * 清空数据
     */
    CLEAN(7,"清空"),

    ;

    @EnumValue
    private int value;

    private String label;

    ActionType(int value, String label) {
        this.value = value;
        this.label = label;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }

}
